<template>
    <div class="user-profile-compontent">
        <div class="d-flex align-items-center">
            <img v-if="typeof user.avatar==='object'" class="rounded-circle img-thumbnail w-25 h-25" :src="user.avatar?.url" :alt="user.nickName">
            <div class="mx-3">
                <h6 class="d-block mb-0"> <b>{{ user.nickName }}</b> </h6>
                <span class="text-truncate text-muted fs-6 ">{{ user.description }}</span>
            </div>
        </div>
    </div>
</template>

<script lang="ts">
import { defineComponent, PropType } from 'vue'
import { Userprops } from "@/store";


export default defineComponent({
    props: {
        user: {
            type: Object as PropType<Userprops>,
            required: true
        }
    },
    setup() {
      
        return {}
    }
})
</script>

<style scoped></style>